package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;

public interface EmployeeService {

    R<Employee> login(Employee employee);

    public boolean save(Employee employee);

    //分页查询
    Page<Employee> findByPage(Integer page, Integer pageSize, String name);

    //修改员工数据
   boolean update(Employee employee);

    //根据id查找员工
    R<Employee> findById(Long id);

}
